package com.wuhan.template.module.home.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.TextView;

import com.wuhan.template.R;
import com.wuhan.template.base.BaseFragment;
import com.wuhan.template.utils.EventMessage;

import java.util.HashMap;
import java.util.Map;

import butterknife.BindView;

/**
 * Created by Administrator on 2016/5/9 0009.
 */
public class ZiXunFragment extends BaseFragment{

    @BindView(R.id.zixun)
    protected TextView tv1;

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_zixun;
    }
    public ZiXunFragment()
    {
    }

    public static ZiXunFragment newInstance() {
        
        Bundle args = new Bundle();

        ZiXunFragment fragment = new ZiXunFragment();
        fragment.setArguments(args);
        return fragment;
    }

    // 获取参数
    @Override
    protected void getReqParams(Bundle bundle)
    {
        String tag = bundle.getString("tag2");
    }

    @Override
    protected void initViews()
    {
        tv1.setText("加载资讯");
    }

    @Override
    protected void loadData()
    {
        Map<String, Object> param = new HashMap<>();
        param.put("pageindex", 3);
       // OkHttpUtils.postSubmitForm(Urls.HOTEL_LIST, param);
    }

    @Override
    protected void postEventResult(@NonNull EventMessage message)
    {
        super.postEventResult(message);
    }


}
